package com.lyz.myself.service;

import com.github.pagehelper.PageInfo;
import com.lyz.myself.pojo.Po.Business;
import com.lyz.myself.pojo.Vo.BusinessProductVo;

import java.util.List;
import java.util.Map;

/**
 * @program: myself
 * @Date: 2019/1/26 10:51
 * @Author: Mr.Deng
 * @Description:
 */
public interface BusinessService {
    /**
     *添加商机
     * @mbg.generated 2019-01-26
     */
    boolean insertBusiness(BusinessProductVo list);

    /**
     * 查询我负责的所有商机
     * @param map
     * @return
     */
    PageInfo<Map<String, Object>> selectBusiness(Map<String,Object> map);

    /**
     *根据id查看商机信息
     * @mbg.generated 2019-01-26
     */
    List<Map<String, String>> selectByPrimaryKey(Integer business_id);

}
